<?php

class Brag extends AppModel {

  public $name = 'Brag';
  public $validate = array(
      'title' => array(
          'rule' => 'notEmpty',
          'message' => 'Title is required'
      ),
      'content' => array(
          'rule' => 'notEmpty',
          'message' => 'Brag is required'
      ),
      'image_path'=>array(    
              'rule'=>array('validImageFormat'),
              'message'=>'Specify a valid image (gif, jpg, png)',
              'allowEmpty'=>true,
                'required'=>false          
      )
  );
}

?>
